#ifndef MACHALARMREPORTPANEL_H
#define MACHALARMREPORTPANEL_H

#include <QGroupBox>
#include <QWidget>

class HttpClient;
class QLineEdit;
class QTextEdit;
class MachAlarmReportPanel : public QGroupBox
{
    Q_OBJECT
public:
    MachAlarmReportPanel();

private:
    void initComponent();
    QWidget* initRequsetPanel();
    QWidget* initResponsePanel();

    HttpClient* client;

    QHash<QString,QLineEdit*> requestVariableHash;
    QHash<QString,QTextEdit*> jsonHash;

private slots:
    void onSendRequest();
    void onReciveResponse(const QByteArray& json);
};

#endif // MACHALARMREPORTPANEL_H
